<?php
/**
 * @version $Id$
 * @package    Jmonoslideshow
 * @author     Matthieu BARBE {@link http://www.ccomca.com}
 * @author     Created on 13-June-2010
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die( 'Restricted access' );

jimport('joomla.application.component.view');

//require helper slideshow
require_once( JPATH_BASE.DS.'components'.DS.'com_jmonoslideshow'.DS.'helpers'.DS.'slideshow.php' );

/**
 * @package		Joomla
 * @subpackage	Jmonoslideshow
 */
class JmonoslideshowViewSlideshow extends JView
{
	function display($tpl = null)
	{
		global $mainframe;

		$user		= &JFactory::getUser();
		$pathway	= &$mainframe->getPathway();
		$model		= &$this->getModel();

		// Get the parameters of the active menu item
		$menus	= &JSite::getMenu();
		$menu    = $menus->getActive();

		$pparams = &$mainframe->getParams();
		
		$this->assignRef('items',	$model->getMedias( $pparams ));
		$this->assignRef('params',		$pparams);

		parent::display($tpl);
	}
	
}
